﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="OrganisationDetail1.ascx.cs"
    Inherits="ServicesDirectory.UserControl.OrganisationDetail1" %>
<%@ Register Src="LookupBusinessType.ascx" TagName="LookupBusinessType" TagPrefix="uc1" %>
<%@ Register Src="LookupAddress.ascx" TagName="LookupAddress" TagPrefix="uc3" %>
<%@ Register Src="ListContact.ascx" TagName="ListContact" TagPrefix="uc2" %>
<%@ Register Src="MessageBox.ascx" TagName="MessageBox" TagPrefix="uc4" %>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <div id="overlay" class="web_dialog_overlay">
        </div>
        <div class="ManagerContentBorder">
            <div class="spaceManager">
            </div>
            <div class="titleCol1">
                Organisation Name <span class="mandatoryFields">*</span>
            </div>
            <div class="titleCol2">
                <asp:TextBox runat="server" ID="txtOrganisationName" Width="90%"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ValidationGroup="errorOrganisation"
                    runat="server" ControlToValidate="txtOrganisationName" SetFocusOnError="true"
                    ErrorMessage="Input OrganisationName can't be empty">*</asp:RequiredFieldValidator>
            </div>
            <div class="titleCol1">
                Preferred Organisation
            </div>
            <div class="titleCol2">
                <asp:CheckBox runat="server" ID="chkPreferred" />
            </div>
            <div class="spaceManager">
            </div>
            <div class="titleCol1">
                Organisation Short Decriptsion<span class="mandatoryFields">*</span>
            </div>
            <div class="titleCol2">
                <asp:TextBox TextMode="MultiLine" runat="server" ID="txtDescription" Width="90%"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ValidationGroup="errorOrganisation"
                    runat="server" ControlToValidate="txtDescription" SetFocusOnError="true" ErrorMessage="Input Decriptsion can't be empty">*</asp:RequiredFieldValidator>
            </div>
            <div style="width: 350px; float: left">
                <div class="titleCol1">
                    Expression of Interrest
                </div>
                <div class="titleCol2">
                    <asp:CheckBox runat="server" ID="chkExpression" AutoPostBack="true" />
                </div>
                <div class="spaceManager">
                </div>
                <div class="titleCol1">
                    Type of Business <span class="mandatoryFields">*</span>
                </div>
                <div class="titleCol2">
                    <asp:TextBox runat="server" ID="txtBusinessType" CssClass="SicCode" Width="120px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" ValidationGroup="errorOrganisation"
                        runat="server" ControlToValidate="txtBusinessType" SetFocusOnError="true" ErrorMessage="Input BusinessType can't be empty"
                        Display="Dynamic">*</asp:RequiredFieldValidator>
                    <div class="lookUp">
                        <asp:LinkButton runat="server" ID="lbtTypeOfBusiness" Text="Lookup"></asp:LinkButton>
                    </div>
                </div>
            </div>
            <div class="spaceManager">
            </div>
            <div class="titleCol1">
                Lead Contact
            </div>
            <div class="titleCol2">
                <asp:Label CssClass="SicCode" runat="server" Width="140px" ID="lblLeadContact"></asp:Label>
                <div class="lookUp">
                    <asp:LinkButton runat="server" ID="lbtLookupContact" Text="Lookup"></asp:LinkButton>
                </div>
            </div>
            <div class="titleCol1">
                SIC Code
            </div>
            <div class="titleCol2">
                <asp:Label CssClass="SicCode" ID="lblSicCode" runat="server" Width="80px"></asp:Label>
            </div>
            <div class="spaceManager">
            </div>
            <div style="width: 345px; float: left">
                <div class="titleCol1">
                    Address Line1 <span class="mandatoryFields">*</span>
                </div>
                <div class="titleCol2">
                    <asp:TextBox runat="server" ID="txtAddress1" Width="90%"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" ValidationGroup="errorOrganisation"
                        runat="server" ControlToValidate="txtAddress1" SetFocusOnError="true" ErrorMessage="Input Address Line 1 can't be empty">*</asp:RequiredFieldValidator>
                </div>
                <div class="spaceManager">
                </div>
                <div class="titleCol1">
                    Address Line2
                </div>
                <div class="titleCol2">
                    <asp:TextBox runat="server" ID="txtAddress2" Width="90%"></asp:TextBox>
                </div>
            </div>
            <div class="titleCol1">
                Organisation Full Description
            </div>
            <div class="titleCol2">
                <asp:TextBox runat="server" TextMode="MultiLine" ID="txtFullDescription" Width="90%"></asp:TextBox>
            </div>
            <div class="spaceManager">
            </div>
            <div class="titleCol1">
                Address Line3
            </div>
            <div class="titleCol2">
                <asp:TextBox runat="server" ID="txtAddress3" Width="90%"></asp:TextBox>
            </div>
            <div class="titleCol1">
                PhoneNumber <span class="mandatoryFields">*</span>
            </div>
            <div class="titleCol2">
                <asp:TextBox runat="server" ID="txtPhoneNumber" Width="90%"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ValidationGroup="errorOrganisation"
                    runat="server" ControlToValidate="txtPhoneNumber" SetFocusOnError="true" ErrorMessage="Input PhoneNumber can't be empty"
                    Display="Dynamic">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ErrorMessage="Phone number is not fomat:xxx[.- ]xxx[.- ]xxx[x][.- ]x[xxx]"
                    ID="RegularExpressionValidator4" runat="server" ValidationExpression="^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{3,4})[-. ]?[-. ]?([0-9]{0,4})$"
                    Display="Dynamic" ControlToValidate="txtPhoneNumber" ValidationGroup="errorOrganisation"
                    SetFocusOnError="true">*</asp:RegularExpressionValidator>
            </div>
            <div class="spaceManager">
            </div>
            <div class="titleCol1">
                Post Code <span class="mandatoryFields">*</span>
            </div>
            <div class="titleCol2">
                <asp:TextBox runat="server" Width="120px" ID="txtPostcode" AutoPostBack="true"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ValidationGroup="errorOrganisation"
                    runat="server" ControlToValidate="txtPostcode" SetFocusOnError="true" ErrorMessage="Input Postcode can't be empty"
                    Display="Dynamic">*</asp:RequiredFieldValidator>
                <div class="lookUp">
                    <asp:LinkButton runat="server" ID="lbtLookupPostcode" Text="Lookup"></asp:LinkButton>
                </div>
            </div>
            <div class="titleCol1">
                Fax
            </div>
            <div class="titleCol2">
                <asp:TextBox runat="server" ID="txtFax" Width="90%"></asp:TextBox>
            </div>
            <div class="spaceManager">
            </div>
            <div class="titleCol1">
                City/Town
            </div>
            <div class="titleCol2">
                <asp:TextBox runat="server" Enabled="false" ID="txtCityTown" Width="90%"></asp:TextBox>
            </div>
            <div class="titleCol1">
                Email
            </div>
            <div class="titleCol2">
                <asp:TextBox runat="server" ID="txtEmail" Width="90%"></asp:TextBox>
                <asp:RegularExpressionValidator ControlToValidate="txtEmail" ID="RegularExpressionValidator1"
                    ValidationExpression="^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$"
                    runat="server" ErrorMessage="Email is not fomat!" ValidationGroup="errorOrganisation">*</asp:RegularExpressionValidator>
            </div>
            <div class="spaceManager">
            </div>
            <div class="titleCol1">
                County
            </div>
            <div class="titleCol2">
                <asp:TextBox runat="server" Enabled="false" ID="txtCounty" Width="90%"></asp:TextBox>
            </div>
            <div class="titleCol1">
                Web Address
            </div>
            <div class="titleCol2">
                <asp:TextBox runat="server" ID="txtWebAddress" Width="90%"></asp:TextBox>
            </div>
            <div class="spaceManager">
            </div>
            <div class="titleCol1">
                Nation/Country
            </div>
            <div class="titleCol2">
                <asp:TextBox runat="server" Enabled="false" ID="txtCountry" Width="90%"></asp:TextBox>
            </div>
            <div style="width: 345px; float: left">
                <div class="titleCol1">
                    Charity Number
                </div>
                <div class="titleCol2">
                    <asp:TextBox runat="server" ID="txtCharity" Width="90%"></asp:TextBox>
                </div>
                <div class="spaceManager">
                </div>
                <div class="titleCol1">
                    Company Number
                </div>
                <div class="titleCol2">
                    <asp:TextBox runat="server" ID="txtCompany" Width="90%"></asp:TextBox>
                </div>
            </div>
            <div class="spaceManager">
            </div>
            <asp:Panel runat="server" CssClass="web_dialog" ID="pnContact" Visible="false">
                <uc2:ListContact ID="ListContact1" runat="server" />
            </asp:Panel>
            <asp:Panel runat="server" CssClass="web_dialog" ID="pnBusiness" Visible="false">
                <uc1:LookupBusinessType ID="LookupBusinessType1" runat="server" />
            </asp:Panel>
            <asp:Panel runat="server" CssClass="web_dialog" ID="pnPostcode" Visible="false">
                <uc3:LookupAddress ID="LookupAddress1" runat="server" />
            </asp:Panel>
            <asp:Panel runat="server" CssClass="web_dialog_Message" ID="pnMessage" Visible="false">
                <uc4:MessageBox ID="MessageBox1" runat="server" />
            </asp:Panel>
            <div class="spaceManager">
            </div>
        </div>
        <div style="margin-left: 10px">
            <asp:ValidationSummary ID="ValidationSummary1" ValidationGroup="errorOrganisation"
                runat="server" />
        </div>
    </ContentTemplate>
</asp:UpdatePanel>
